package net.toocruel.iqismart.web.controller.core;

import net.toocruel.iqismart.dao.core.AnswerRepository;
import net.toocruel.iqismart.dao.core.ArticleRepository;
import net.toocruel.iqismart.dao.core.CommentRepository;
import net.toocruel.iqismart.dao.core.SupportRepository;
import net.toocruel.iqismart.entity.constants.SourceType;
import net.toocruel.iqismart.service.UserService;
import net.toocruel.iqismart.service.core.*;
import net.toocruel.iqismart.web.controller.base.AbstractBaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("notification")
public class NotificationController extends AbstractBaseController {

    @Autowired
    private UserService userService;

    @Autowired
    private TagService tagService;

    @Autowired
    private CategoryService categoryService;

    @Autowired
    private QuestionService questionService;

    @Autowired
    private CommentService commentService;


    @Autowired
    private SupportRepository supportRepository;

    @Autowired
    private ArticleRepository articleRepository;

    @Autowired
    private AnswerRepository answerRepository;

    @Autowired
    private CommentRepository commentRepository;

    @Autowired
    private SupportService supportService;

    @GetMapping()
    public String index(@PathVariable SourceType sourceType,
                               @PathVariable Long sourceId ,
                               HttpServletRequest request){


        return getTemplate("index");
    }




    @Override
    protected String getModule() {
        return "notification";
    }
}
